//
//  FMCommonFun.h
//  WOM
//
//  Created by leeqb on 3/25/14.
//  Copyright (c) 2014 cst. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FMCommonFun : NSObject

void transform_earth_2_mars(double lat, double lng, double* tarLat, double* tarLng);
void transform_mars_2_bear_paw(double lat, double lng, double* tarLat, double* tarLng);
void transform_bear_paw_2_mars(double lat, double lng, double* tarLat, double* tarLng);

+ (double)distanceBetweenOrderBy:(double)lat1 :(double)lat2 :(double)lng1 :(double)lng2;

// 计算从指定时间开始到现在的年份差
+ (NSInteger)getYearIntervalFromTimestamp:(long long)timestamp;

@end
